package cn.hnucm.userservice.service.impl;

import cn.hnucm.userservice.entity.TbUserBasicMessage;
import cn.hnucm.userservice.entity.TbUserSign;
import cn.hnucm.userservice.mapper.TbUserSignMapper;
import cn.hnucm.userservice.service.TbUserSignService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 * 用户登录的表 服务实现类
 * </p>
 *
 * @author zjl
 * @since 2021-12-08
 */
@Service
public class TbUserSignServiceImpl implements TbUserSignService {

    @Autowired
    private TbUserSignMapper tbUserSignMapper;

    @Override
    public List<TbUserSign> findTbUserSignById(int userId) {
        return tbUserSignMapper.findTbUserSignById(userId);
    }

    @Override
    public boolean addTbUserSign(TbUserSign tbUserSign) {
        return tbUserSignMapper.addTbUserSign(tbUserSign);
    }

    @Override
    public boolean updateTbUserSign(TbUserSign tbUserSign) {
        return tbUserSignMapper.updateTbUserSign(tbUserSign);
    }

    @Override
    public boolean deleteTbUserSign(int userId) {
        return tbUserSignMapper.deleteTbUserSign(userId);
    }

    @Override
    public List<TbUserBasicMessage> findTbUserBasicMessageByAccount(String userAccount) {
        return tbUserSignMapper.findTbUserBasicMessageByAccount(userAccount);
    }
}
